package com.cl.service;

import com.cl.po.Blog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @Author:Long
 * @Date:Created in 17:21 2018/7/4
 * @Description:
 */
public interface BlogService {

    Blog getBlog(Long id);

    Blog saveBlog(Blog blog);

    Blog updateBlog(Long id, Blog blog);

    void deleteBlog(Long id);

    Page<Blog> getBlogList(Pageable pageable,Blog blog);

    Blog findByTitle(String title);
}
